#include<stdio.h>
int main()
{
	int i,k,sum=0;
	scanf("%d",&i);
	for(k=1;k<=i;k++)
	{
		sum=sum+2*k-1;
	}
	printf("%d",sum);
}
 
